package com.ygqh.baby.service;
import java.util.List;

import  com.ygqh.baby.ao.QueryInfo;
import  com.ygqh.baby.ao.ResultSet;
import  com.ygqh.baby.po.AdminRole;

public interface AdminRoleService {

    
    List<AdminRole> find();
	int findCount();
	AdminRole findById(Long id);
	int deleteSoft(Long[] ids);
	int deleteSoft(Long id);
	int update(AdminRole adminRole,Long[] permissionIds);
	ResultSet<AdminRole> search(QueryInfo queryInfo,String q,Boolean isEnabled);
	/**
	 * 保存角色
	 * @param role
	 * @return
	 */
	int save(AdminRole role,Long[] permissionIds);
	
	List<AdminRole> findBySupplierId(Long supplierId);
	
	AdminRole findDetailById(Long id);
	int updateByPrimaryKeySelective(AdminRole adminRole);

}
